package com.application.model.geocode;

//import com.google.code.geocoder.Geocoder;
//import com.google.code.geocoder.GeocoderRequestBuilder;
//import com.google.code.geocoder.model.GeocodeResponse;
//import com.google.code.geocoder.model.GeocoderAddressComponent;
//import com.google.code.geocoder.model.GeocoderRequest;
//import com.google.code.geocoder.model.GeocoderResult;

public class RetriveGeo {

//	public v(){
//		final Geocoder geocoder = new Geocoder();
//		GeocoderRequest geocoderRequest = new GeocoderRequestBuilder().setAddress("Bernardo de Yrigoyen 820, Argentina").setLanguage("en").getGeocoderRequest();
//		GeocodeResponse geocoderResponse = geocoder.geocode(geocoderRequest);
//		for (GeocoderResult item :geocoderResponse.getResults()){
//			for (GeocoderAddressComponent component : item.getAddressComponents()) {
//				System.out.println("LONG NAME : "+component.getLongName());
//				System.out.println("SHORT NAME : "+component.getShortName());				
//			}
//			System.out.println("LAT : "+item.getGeometry().getLocation().getLat());
//			System.out.println("LAT : "+item.getGeometry().getLocation().getLng());
//		}
//	}
}
